import request from '@/utils/request'

export function getPlatformStats() {
  return request({
    url: '/stat/platform',
    method: 'get'
  })
}

export function getAdminDashboardStats() {
  return request({
    url: '/stat/admin/dashboard',
    method: 'get'
  })
}

export function getActivityTrend(timeRange) {
  return request({
    url: `/stat/activity/trend/${timeRange}`,
    method: 'get'
  })
}

export function getUserGrowthTrend(timeRange) {
  return request({
    url: `/stat/user/growth/${timeRange}`,
    method: 'get'
  })
} 